import random

b=int(input("买几组？"))

for i in range(b):
    x=[]
    for i in range(1,34):
        x.append(i)

    x=random.sample(x,6)

    x.sort()
    a=random.randint(1,16)
    x.append(a)
    print(x)